import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getUserList(data) {
    return request({
        url: appUrl + '/user/search',
        method: 'post',
        data
    })
}

export function addUser(data) {
    return request({
        url: appUrl + '/user/create',
        method: 'post',
        data
    })
}

export function editUser(data) {
    return request({
        url: appUrl + '/user/update',
        method: 'post',
        data
    })
}

export function getUserInfo(data) {
    return request({
        url: appUrl + '/user/info',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    return request({
        url: appUrl + '/user/delete',
        method: 'post',
        data
    })
}
